package com.hangzhou.welbeing.welbeinginstrument.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.hangzhou.welbeing.welbeinginstrument.factory.MainFragmentFactory;

/**
 * 杭州惟君医疗科技有限公司13
 * Created by 20433 on 2018/1/30
 */

public class MainViewpagerAdapter extends FragmentPagerAdapter{

    public MainViewpagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return MainFragmentFactory.CreateCircleObject(position);
    }

    @Override
    public int getCount() {
        return 4;
    }
}
